package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
@create: 2022-09-21 9:01
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "repair_woker")
public class RepairWoker {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("vehicle_id")
    private String vehicleId;

    @TableField(value = "repair_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairDate;

    @TableField(value = "address")
    private String address;

    @TableField(value = "reason")
    private String reason;

    /**
     * 维修工
     */
    @TableField(value = "woker")
    private Integer woker;

    /**
     * 维修单编号
     */
    @TableField(value = "repair_id")
    private String repairId;

    /**
     * 受理人
     */
    @TableField(value = "acceptor")
    private String acceptor;

    @TableField(value = "finish_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishDate;

    @TableField(value = "`status`")
    private Integer status;

    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private VehicleInfo vehicleInfo;

    @TableField(exist = false)
    private StaffBasicInfo staffBasicInfo;
}